<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>

        *
        {
            box-sizing: border-box;
        }

        body,
        html {
            height: 100%;
            margin: 0 auto;
            padding: 0;
            background-color: lightseagreen;
        }

        #tick {
            width: 100%;
            height: 100%;
            font-size: 50px;
            color: white;
            text-align: center;
            padding-top: 30%;
        }
    </style>

</head>

<body>

    <div id="tick"></div>

    <script>

        i = 0;
        setInterval(function () {
            document.getElementById('tick').innerText = i;
            i++;
        }, 1000);

    </script>

</body>

</html>